package com.example.tool.bean.business.wechat;

import com.example.tool.bean.wcaiexcel.WeComApiResponse;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class AddFieldsResponse extends WeComApiResponse {
    private List<ResponseField> fields;

    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ResponseField {
        @JsonProperty("field_id")
        private String fieldId;    // 字段ID
        @JsonProperty("field_title")
        private String fieldTitle;  // 字段标题
        @JsonProperty("field_type")
        private String fieldType;  // 字段类型
    }
}
